package com.thoughtworks.reader;

import java.io.BufferedReader;
import java.io.IOException;

public class InputReader {

    private BufferedReader bufferedReader;

    public InputReader(BufferedReader bufferedReader) {
        this.bufferedReader = bufferedReader;
    }

    public int read() throws IOException {
        return Integer.valueOf(bufferedReader.readLine());
    }
}
